<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('date/picker/month-panel/months-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '';
        var config0 = {};
        var params1 = [];
        var id2 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;months&quot;, 0, 1, undefined, true);
        params1.push(id2);
        config0.params = params1;
        config0.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n&lt;tr role=&quot;row&quot;&gt;\r\n    ';
            var config3 = {};
            var params4 = [];
            var id6 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 3, undefined, true);
            var id5 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;months.&quot; + id6 + &quot;&quot;, 0, 3, undefined, true);
            params4.push(id5);
            config3.params = params4;
            config3.fn = function (scopes) {
                var buffer = &quot;&quot;;
                buffer += '\r\n    &lt;td role=&quot;gridcell&quot;\r\n        title=&quot;';
                var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;title&quot;, 0, 5, undefined, false);
                buffer += getExpressionUtil(id7, true);
                buffer += '&quot;\r\n        class=&quot;';
                var config9 = {};
                var params10 = [];
                params10.push('cell');
                config9.params = params10;
                var id8 = getPropertyOrRunCommandUtil(engine, scopes, config9, &quot;getBaseCssClasses&quot;, 0, 6, true, undefined);
                buffer += id8;
                buffer += '\r\n        ';
                var config11 = {};
                var params12 = [];
                var id13 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;month&quot;, 0, 7, undefined, true);
                var id14 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;value&quot;, 0, 7, undefined, true);
                params12.push(id13 === id14);
                config11.params = params12;
                config11.fn = function (scopes) {
                    var buffer = &quot;&quot;;
                    buffer += '\r\n        ';
                    var config16 = {};
                    var params17 = [];
                    params17.push('selected-cell');
                    config16.params = params17;
                    var id15 = getPropertyOrRunCommandUtil(engine, scopes, config16, &quot;getBaseCssClasses&quot;, 0, 8, true, undefined);
                    buffer += id15;
                    buffer += '\r\n        ';
                    return buffer;
                };
                buffer += runBlockCommandUtil(engine, scopes, config11, &quot;if&quot;, 7);
                buffer += '\r\n        &quot;&gt;\r\n        &lt;a hidefocus=&quot;on&quot;\r\n           href=&quot;#&quot;\r\n           class=&quot;';
                var config19 = {};
                var params20 = [];
                params20.push('month');
                config19.params = params20;
                var id18 = getPropertyOrRunCommandUtil(engine, scopes, config19, &quot;getBaseCssClasses&quot;, 0, 13, true, undefined);
                buffer += id18;
                buffer += '&quot;&gt;\r\n            ';
                var id21 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;content&quot;, 0, 14, undefined, false);
                buffer += getExpressionUtil(id21, true);
                buffer += '\r\n        &lt;/a&gt;\r\n    &lt;/td&gt;\r\n    ';
                return buffer;
            };
            buffer += runBlockCommandUtil(engine, scopes, config3, &quot;each&quot;, 3);
            buffer += '\r\n&lt;/tr&gt;\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config0, &quot;each&quot;, 1);
        return buffer;
    }
});</pre>
</body>
</html>
